<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2024/6/11
 * Time: 15:09
 */

namespace app\model\admin;


class Customer extends Base
{
    protected $append = [
        'status_text'
    ];
    public $status_array = [1 => '未处理', 2 => '已联系', 3 => '有意向', 4 => '无意向', 5 => '加微信', 6 => '已下单', 7 => '跟踪中'];
    protected $autoWriteTimestamp = 'datetime';
    public function getStatusTextAttr($value,$data){
        return $this->status_array[$data['status']];
    }
}